import { getMapFromOption } from '@/utils/common'

import { List as list } from './store'

const { result } = await list()
export const List = result

export const productTypeOptions = [
    {
        label: '蔬菜类',
        value: 0
    },
    {
        label: '水果类',
        value: 1
    },
    {
        label: '畜牧类',
        value: 2
    },
    {
        label: '渔类',
        value: 3
    },
    {
        label: '其他类',
        value: 4
    }
]

export const productTypeMaps = getMapFromOption(productTypeOptions)